﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpWeb
{
    /// <summary>
    /// 文字组件，表示Html中的一段字符串
    /// </summary>
    public class StringTag : TagComponent
    {
        public StringTag()
        {

        }
        public StringTag(string text)
        {
            _Text = text;
        }
        private string _Text;
        /// <summary>
        /// 字符串
        /// </summary>
        public string Text
        {
            get { return _Text; }
            set { _Text = value; }
        }

        protected override string OnRender(ComponentContext context)
        {
            return this.Text;
        }
    }
}
